doctype html
html(lang='zh-CN')
	head
		meta(charset='utf-8')
		meta(http-equiv='X-UA-Compatible',content='IE=edge')
		meta(name='viewport',content='width=device-width,initial-scale=1')
		title
			block title
				='ReferenceError'
		link(rel='stylesheet',href='/lib/semantic/dist/semantic.css')
		link(rel='stylesheet',href='/css/base.css')
		block head
	body
		//-.grey.inverted
		.main-nav.ui.fixed.compact.small.top.borderless.transition.menu
			.ui.container
				a.header.item(href='/')
					h2.logoText.left Reference
					h2.logoText.right Error
				a.active.item(href='/')
					i.comments.icon
					='论坛'
				a.item(href='/')
					i.user.icon
					='个人'
				.item
					.ui.icon.input
						input(type='text',placeholder='主题...')
						i.search.link.icon
				.right.menu
					- if(!locals.user)
						.item: .ui.teal.button#btn-signUp 注册 or 登录
					- else
						.item=user.loginName
						.item: a.ui.teal.button(href='/logOut') 登出
		.main.ui.container
			.ui.very.close.right.rail
				block sidebar
			.ui.segment
				.ui.breadcrumb
					a.section(href='/') ReferenceError
					.divider /
					block nav
						a.active.section 首页
				block body
		- if(!locals.user)
			include ./include/sign_up_modal.jade
		script(src='/lib/jquery/dist/jquery.js')
		script(src='/lib/semantic/dist/semantic.js')
		- if(!locals.user)
			include ./include/validate.jade
			include ./include/sign_up_script.jade
		block script